import request from '@/utils/request'

// 查询订单评论列表
export function listContent(query) {
    return request({
        url: '/system/content/list',
        method: 'get',
        params: query
    })
}

// 查询订单评论详细
export function getContent(id) {
    return request({
        url: '/system/content/' + id,
        method: 'get'
    })
}

// 新增订单评论
export function addContent(data) {
    return request({
        url: '/system/content',
        method: 'post',
        data: data
    })
}

// 修改订单评论
export function updateContent(data) {
    return request({
        url: '/system/content',
        method: 'put',
        data: data
    })
}

// 删除订单评论
export function delContent(id) {
    return request({
        url: '/system/content/' + id,
        method: 'delete'
    })
}
